<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
       .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
           margin-top: 4px;
      }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">所属未核销记录查询</h1>
    </div>
    <!-- 标题 -->
    <div>
    <form action="#" method="post" id="form_check" class="form-inline">
      <table class="row-margin-top tab-content table-bordered table text-left" border="1">
          <tr>
            <td style="min-width: 140px" class="text-right"><label for="" class="form-label">分区</label></td>
            <td><input type="text" class="form-control" name="fenqu" value="{$data.fenqu}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">省份</label></td>
            <td><input type="text" class="form-control" name="sheng" value="{$data.sheng}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">城市</label></td>
            <td><input type="text" class="form-control" name="shi" value="{$data.shi}"></td>
             </tr>
             <tr>
              <td style="min-width: 140px" class="text-right"><label for="" class="form-label">经销商名</label></td>
            <td><input type="text" class="form-control" name="jxs" value="{$data.jxs}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">经销商编码</label></td>
            <td colspan="3"><input type="text" class="form-control" name="no" value="{$data.no}"></td>
             </tr>
             <tr>
				<td colspan="6" class="text-center">
              <button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
                    <button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
            </td>
             </tr>
      </table>
      <table class="table row-margin-top table-bordered table-hover text-center bud_hei">
          <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">经销商名及编号</th>
            <th class="text-center">分区,省份,城市</th>
            <th class="text-center">批复金额</th>
            <th class="text-center">已核金额</th>
            <th class="text-center">未核金额</th>
            <th class="text-center">不予核销</th>
            <th class="text-center">明细</th>
          </tr>
          {volist name="apply" id="vo"}
          <tr>
            <td>{$i}</td>
            <td>{$vo.title}{$vo.sn}</td>
            <td>{$vo.fenqu},{$vo.sheng},{$vo.city}</td>
            <td class="ObjectNum text-right pizhun">{$vo.pizhun}</td>
            <td class="ObjectNum text-right yihe">{$vo.yihe}</td>
            <td class="ObjectNum text-right wsq">{$vo.weihe}</td>
            <td class="ObjectNum text-right buhe">{$vo.buhe}</td>
            <td><a class="J_menuItem" href="{:url('Titongji/weihelist')}?jid={$vo.id}">查看</a></td>
          </tr>
          {/volist}
          <tfoot>
			  <tr class="trTotal text-right">
           			<td colspan="3">合计:</td>
           			<td class="ObjectNum" id="pizhun">696641</td>
           			<td class="ObjectNum" id="yihe">346570</td>
           			<td class="ObjectNum" id="wsq">900</td>
           			<td id="buhe" class="ObjectNum"></td>
           			<td></td>
          		</tr>
          </tfoot>
      </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
       <script src="__STATIC__/layout/js/contabs_sub.js"></script>
    <script>
     var buhe=0;
            $(".buhe").each(function(){
              buhe+=parseFloat($(this).html())
            })
            $("#buhe").html(buhe.toFixed(2))

            var wsq=0;
            $(".wsq").each(function(){
              wsq+=parseFloat($(this).html())
            })
            $("#wsq").html(wsq.toFixed(2))

            var pizhun=0;
            $(".pizhun").each(function(){
              pizhun+=parseFloat($(this).html())
            })
            $("#pizhun").html(pizhun.toFixed(2))

            var yihe=0;
            $(".yihe").each(function(){
              yihe+=parseFloat($(this).html())
            })
            $("#yihe").html(yihe.toFixed(2))
          $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
          })
            $("#check").click(function(){
              
              document.getElementById("form_check").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            
             document.getElementById("form_check").submit();
        })
    </script>
</body>

</html>
